/*
 * @Description:
 * @Author: changqing
 * @Date: 2021-05-30 10:18:58
 * @LastEditTime: 2021-05-30 10:24:45
 * @LastEditors: changqing
 * @Usage:
 */
const tokenKey = 'V3-Admin-Token'

export const getToken = (): string | null => {
  return localStorage.getItem(tokenKey)
}

export const setToken = (token: string): void => {
  return localStorage.setItem(tokenKey, token)
}

export const removeToken = (): void => {
  return localStorage.removeItem(tokenKey)
}
